import { requeat as axios } from "../utils/axios";

// 注册
export const registerApi = (data) => {
  return axios({
    url: "/register",
    method: "post",
    data
  });
};

// 登录
export const loginApi = (data) => {
  return axios({
    url: "/login",
    method: "post",
    data
  });
};